Skip to content

Change the signature of pollIntIORef#3036

Merged
harendra-kumar merged 1 commit intomasterfrom
pollIntIORef
May 21, 2025
Merged

Change the signature of pollIntIORef#3036
harendra-kumar merged 1 commit intomasterfrom
pollIntIORef

Conversation

@harendra-kumar
Copy link
Copy Markdown
Member

issue #2964

@harendra-kumar harendra-kumar requested a review from adithyaov May 20, 2025 04:42
pollIntIORef var = D.Stream step ()
-- | Internal, do not use.
{-# INLINE_NORMAL pollGenericIORef #-}
pollGenericIORef :: (MonadIO m, Unbox a) => IORef a -> D.Stream m a
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need a generic version? Just the Int version should be enough. Any acceptable generic value should be coerced to Int.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To suppress the deprecation warning in the MutArray module. This definition is being used there.

@harendra-kumar harendra-kumar merged commit 5b9de04 into master May 21, 2025
16 of 21 checks passed
@harendra-kumar harendra-kumar deleted the pollIntIORef branch May 21, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants